import { WeaTools } from 'ecCom';

export const getList = params => WeaTools.callApi('/api/offical/sendDoc/getList', 'POST', params);

export const getCondition = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/condition', 'POST', params);

export const getBaseinfo = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/getBaseinfo', 'POST', params);
// 发送
export const sendDoc = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/sendDoc', 'POST', params);
// 获取收发文列表单位详情
export const getReceiveSendUnitInfo = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/getReceiveSendUnitInfo', 'POST', params);

export const setReceiveSendUnitInfo = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/setReceiveSendUnitInfo', 'POST', params);
// 获取收文详情弹窗的table列表信息接口
export const getSendDocinfo = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/getWebAddresseeList', 'POST', params);
// 作废、撤销form接口
export const postWebSendDocCondition = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/postWebSendDocCondition', 'POST', params);
// 作废、批量作废接口
export const cancelledDoc = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/cancelledDoc', 'POST', params);
// 重新发送
export const resendDoc = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/resendDoc', 'POST', params);
// 撤销
export const revokedDoc = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/revokedDoc', 'POST', params);
